# 多捕获
# 正确执行：try->else->finally
# 错误执行：try->except->->else->finally
try:
    a = input("请输入被除数\n")
    b = input("请输入除数\n")
    c = float(a) / float(b)
except ZeroDivisionError:
    print("除数不能为0")
except ValueError:
    print("输入的值只能是数字")
else:
    print("兜底方法")
finally:
    print("finally语句块")
